package org.xjc.annotation;

import org.apache.catalina.connector.Response;
import org.springframework.http.HttpEntity;
import org.xjc.vo.RespBean;
import org.xjc.exception.CustomException;

import java.lang.annotation.*;

/**
 * @Author : XJC
 * @Description : 保存Error标识
 * @create : 2022/7/25 17:33
 */

@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Error {

    String rspMsg() default "操作失败";

    String rspCode() default "500";

    Class<? extends Exception> exception() default CustomException.class;

    Class<?>[] ignore() default {HttpEntity.class, Response.class, RespBean.class};

    String description() default "";

    String[] params() default {};


}
